//
//  collect_Cell.m
//  penzer
//
//  Created by caiyc on 2018/10/1.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "collect_Cell.h"

@implementation collect_Cell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.lable1.layer.cornerRadius = 5;
    self.lable2.layer.cornerRadius = 5;
    self.lable1.layer.masksToBounds = 1;
    self.lable2.layer.masksToBounds = 1;
    // Initialization code
}
-(void)bindData:(NSDictionary *)dic{
    NSDictionary *goods = dic[@"goods_list"][0];
    NSURL *url = [NSURL URLWithString:goods[@"thumb"]];
    [self.image sd_setImageWithURL:url];
    self.title.text = goods[@"title"];
    self.num_Lab.text = [NSString stringWithFormat:@"%@/%@",dic[@"act_member_num"],dic[@"member_max"]];
}
@end
